<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script src="../jquery.js"></script>
<script src="./libs/jquery.cookie.js"></script>
<script>

    // 增改
    $.cookie("a","10")
    $.cookie("b","20",{
        expires: 3
    })
    $.cookie("c","30",{
        path:"/abc"
    })
    $.cookie("d","40",{
        path:"/abc",
        expires: 5
    })

    // 删
    $.cookie("a", null);

    // 读当前路径
    $.cookie("b");
    // 读指定路径
    $.cookie("c",{
        path:"/abc"
    });
    $.cookie("d",{
        path:"/abc"
    });

</script>
</html>